package com.jvm123.blog.dao;

import com.jvm123.blog.entity.Post;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author yawn http://jvm123.com
 * 2019/10/22 13:51
 */
public interface PostRepos extends CrudRepository<Post, Long> {

    List<Post> findByPostType(String type);

    List<Post> findTop36ByPostType(String type);


}

